'use strict';

/**
 * 识别记录相关接口
 */
const recordCtrl = require('../../controllers/record');
const router = require('koa-router')();

// 查询识别记录
router.get("/query", recordCtrl.query);
// 删除识别记录
router.post("/delete", recordCtrl.delete);
// 压缩特征并获取特征下载路径
router.get("/get_download_url", recordCtrl.getDownloadUrl);
// 下载抓拍前后几帧图片
router.get("/download_capture", recordCtrl.downloadCapture);

router.post("/clean", recordCtrl.clean);

router.post("/record_to_user", recordCtrl.recordToUser);


// 获取学生记录
router.post('/get_student_record', recordCtrl.getStudentRecord)

router.post('/get_student_capture_photo', recordCtrl.getStudentCapturePhoto)

module.exports = router;
